Piwik\CronArchive\QueueConsumer B

Total Complexity 97
Dependencies 18
Dependents 1
Total lines 620
Lines of code 362
Logical lines of code 225
Comment lines 112
Methods 21
Properties 17

Methods 21

Method Rating Maintainability Complexity Lines of code
getNextArchivesToProcess()
C
29
25 135
shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress()
A
49 12 30
hasIntersectingPeriod()
A
54 10 21
archiveArrayContainsArchive()
A
58 9 15
getNextInvalidatedArchive()
S
49 7 29
usableArchiveExists()
S
52 5 21
isArchiveNonSegmentAndInProgressArchiveSegment()
S
63 6 10
findSegmentForArchive()
S
57 3 16
isArchiveOfLowerPeriod()
S
64 3 10
addInvalidationToExclude()
S
71 2 6
getPluginNameForArchiveIfAny()
S
66 2 8
setMaxSitesToProcess()
S
72 2 6
shouldSkipArchive()
S
72 2 6
canSkipArchiveBecauseNoPoint()
S
62 2 10
__construct()
S
60 1 13
getInvalidationDescription()
S
63 1 11
detectPluginForArchive()
S
79 1 3
ignoreIdInvalidation()
S
80 1 3
skipToNextSite()
S
81 1 3
getNextIdSiteToArchive()
S
81 1 3
getIdSite()
S
82 1 3